OneTeamSoftware\WooCommerce\Shipping\Adapter\Shippo D

Total Complexity 164
Dependencies 1
Dependents 0
Total lines 1,277
Lines of code 1,026
Logical lines of code 356
Comment lines 2
Methods 43
Properties 5

Methods 43

Method Rating Maintainability Complexity Lines of code
getShipmentResponse()
B
36 23 74
initServices()
B
19
1 298
prepareAddress()
A
43 15 51
getRatesParams()
A
44 13 40
prepareParcelInfo()
A
46 13 36
setShipmentCacheValues()
A
45 10 42
prepareCustomsInfo()
A
49 9 29
prepareCustomsItem()
S
49 7 30
getResponse()
S
54 7 19
getErrorMessage()
S
56 6 18
initPackageTypes()
S
37 1 76
getRates()
S
56 4 17
validate()
S
57 4 16
prepareCustomsItems()
S
60 4 14
getValidationErrors()
S
59 4 13
initCarriers()
S
42 1 54
__construct()
S
49 1 34
getIntegrationFormFields()
S
50 1 34
canBuy()
S
70 3 6
getShipmentId()
S
63 3 10
getCacheKey()
S
66 3 9
getRequestParams()
S
65 3 8
validateActiveApiToken()
S
63 3 9
getCachedParcelInfo()
S
63 2 10
getCachedCustomsInfo()
S
63 2 10
getCachedAddress()
S
63 2 10
addHeadersAndParams()
S
77 2 3
getRatesResponse()
S
66 2 8
hasUseSellerAddressFeature()
S
82 1 3
hasCustomItemsFeature()
S
82 1 3
hasTariffFeature()
S
82 1 3
getServices()
S
82 1 3
getRouteUrl()
S
72 1 5
getRequestBody()
S
75 1 4
hasAddressValidationFeature()
S
82 1 3
hasReturnLabelFeature()
S
82 1 3
getName()
S
82 1 3
hasOriginFeature()
S
82 1 3
hasSignatureFeature()
S
82 1 3
hasDisplayDeliveryTimeFeature()
S
82 1 3
hasUpdateShipmentsFeature()
S
82 1 3
hasCreateShipmentFeature()
S
82 1 3
hasInsuranceFeature()
S
82 1 3